package com.ruoyi.customerSample.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 样品接收明细对象 sample_detail_bill
 * 
 * @author ruoyi
 * @date 2023-04-10
 */
@ApiModel("样品流转记录详情单据对象")
public class SampleDetailBill extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 样品接收单id */
    @Excel(name = "样品接收单id")
    @ApiModelProperty(value = "样品接收单id")
    private String sid;

    /** 样品编号 */
    @Excel(name = "样品编号")
    @ApiModelProperty(value = "样品编号")
    private String sampleNum;

    /** 样品名称 */
    @Excel(name = "样品名称")
    @ApiModelProperty(value = "样品名称")
    private String sampleName;

    /** 样品状态 */
    @Excel(name = "样品状态")
    @ApiModelProperty(value = "样品状态")
    private String sampleState;

    /** 型号 */
    @Excel(name = "型号")
    @ApiModelProperty(value = "型号")
    private String sampleModel;

    /** 样品数量 */
    @Excel(name = "样品数量")
    @ApiModelProperty(value = "样品数量")
    private String sampleCount;

    /** 采样日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采样日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "采样日期")
    private Date samplingTime;

    /** 采样/使用地点 */
    @Excel(name = "采样/使用地点")
    @ApiModelProperty(value = "采样/使用地点")
    private String samplingAdress;

    /** 检测项目 */
    @Excel(name = "检测项目")
    @ApiModelProperty(value = "检测项目")
    private String testItem;

    /** 检测后是否退还 */
    @Excel(name = "检测后是否退还", readConverterExp = "1=是,2=否")
    @ApiModelProperty(value = "检测后是否退还")
    private String isBack;

    /** 防爆证号 */
    @ApiModelProperty(value = "防爆证号")
    private String eproofNum;

    /** 安标证号 */
    @ApiModelProperty(value = "安标证号")
    private String safetyNum;

    /** 出厂编号 */
    @ApiModelProperty(value = "出厂编号")
    private String proNum;

    /** 序号 */
    @ApiModelProperty(value = "序号")
    private String sorts;

    /** 备注 */
    @ApiModelProperty(value = "备注")
    private String remarks;

    /** 生产厂家 */
    @Excel(name = "生产厂家")
    @ApiModelProperty(value = "生产厂家")
    private String manufacturer;

    /** 来样单位 */
    @Excel(name = "来样单位")
    @ApiModelProperty(value = "来样单位")
    private String company;

    /** 项目编号 */
    @Excel(name = "项目编号")
    @ApiModelProperty(value = "项目编号")
    private String itemNum;

    /** 单位地址 */
    @Excel(name = "单位地址")
    @ApiModelProperty(value = "单位地址")
    private String adress;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setSid(String sid) 
    {
        this.sid = sid;
    }

    public String getSid() 
    {
        return sid;
    }
    public void setSampleNum(String sampleNum) 
    {
        this.sampleNum = sampleNum;
    }

    public String getSampleNum() 
    {
        return sampleNum;
    }
    public void setSampleName(String sampleName) 
    {
        this.sampleName = sampleName;
    }

    public String getSampleName() 
    {
        return sampleName;
    }
    public void setSampleState(String sampleState) 
    {
        this.sampleState = sampleState;
    }

    public String getSampleState() 
    {
        return sampleState;
    }
    public void setSampleModel(String sampleModel) 
    {
        this.sampleModel = sampleModel;
    }

    public String getSampleModel() 
    {
        return sampleModel;
    }
    public void setSampleCount(String sampleCount) 
    {
        this.sampleCount = sampleCount;
    }

    public String getSampleCount() 
    {
        return sampleCount;
    }
    public void setSamplingTime(Date samplingTime) 
    {
        this.samplingTime = samplingTime;
    }

    public Date getSamplingTime() 
    {
        return samplingTime;
    }
    public void setSamplingAdress(String samplingAdress) 
    {
        this.samplingAdress = samplingAdress;
    }

    public String getSamplingAdress() 
    {
        return samplingAdress;
    }
    public void setTestItem(String testItem) 
    {
        this.testItem = testItem;
    }

    public String getTestItem() 
    {
        return testItem;
    }
    public void setIsBack(String isBack) 
    {
        this.isBack = isBack;
    }

    public String getIsBack() 
    {
        return isBack;
    }

    public String getEproofNum() {
        return eproofNum;
    }

    public void setEproofNum(String eproofNum) {
        this.eproofNum = eproofNum;
    }

    public String getSafetyNum() {
        return safetyNum;
    }

    public void setSafetyNum(String safetyNum) {
        this.safetyNum = safetyNum;
    }

    public String getProNum() {
        return proNum;
    }

    public void setProNum(String proNum) {
        this.proNum = proNum;
    }

    public String getSorts() {
        return sorts;
    }

    public void setSorts(String sorts) {
        this.sorts = sorts;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getManufacturer() {
        return manufacturer;
    }

    public void setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }


    public String getItemNum() {
        return itemNum;
    }

    public void setItemNum(String itemNum) {
        this.itemNum = itemNum;
    }

    public String getAdress() {
        return adress;
    }

    public void setAdress(String adress) {
        this.adress = adress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sid", getSid())
            .append("sampleNum", getSampleNum())
            .append("sampleName", getSampleName())
            .append("sampleState", getSampleState())
            .append("sampleModel", getSampleModel())
            .append("sampleCount", getSampleCount())
            .append("samplingTime", getSamplingTime())
            .append("samplingAdress", getSamplingAdress())
            .append("testItem", getTestItem())
            .append("isBack", getIsBack())
            .toString();
    }
}
